package com.yhsimon.principle._4_liskov.improve;

public class Liskov {
    public static void main(String[] args) {

    }
}

class A{
    public int func1(int n1,int n2){
        return n1-n2;
    }
}

class B extends A {
    //这里，重写了 A 类的方法,  可能是无意识
    public int func1(int a, int b) { return a + b;
    }

    public int func2(int a, int b) { return func1(a, b) + 9;
    }
}